Skip to content

[Draft] Add restart test for multi-index types with import#3293

Draft
zpf121 wants to merge 34 commits intoinfiniflow:mainfrom
zpf121:add_restart_tests
Draft

[Draft] Add restart test for multi-index types with import#3293
zpf121 wants to merge 34 commits intoinfiniflow:mainfrom
zpf121:add_restart_tests

Conversation

@zpf121
Copy link
Contributor

@zpf121 zpf121 commented Mar 9, 2026

Summary
This PR adds a new restart test test_multiple_index_types_import.py to verify that all index types work correctly after restart with concurrent read/write operations. The test is designed to detect bugs in index building during data import.

Test Logic
Phase 1: Create Table and Indexes
Create a table with multiple columns: id, text, category, vector_col, multi_vector_col, sparse_col, tensor_col
Create indexes BEFORE importing data:
FullText index on text
Secondary index (high cardinality) on id
HNSW index on vector_col
HNSW index on multi_vector_col
BMP index on sparse_col
Secondary index (low cardinality) on category

Phase 2: Import Data
Import ~10000000 rows from CSV file
Verify row count matches expected

Phase 3: Restart Testing (3 rounds)
Each round:
Restart Infinity server
Start 4 write threads (continuous insert)
Start 9 read threads (validate each index type works)
Run for 120 seconds per round
Verify row count increases after each round

@zpf121 zpf121 marked this pull request as draft March 9, 2026 08:52
@zpf121 zpf121 added the slow-test To trigger slow test label Mar 9, 2026
@zpf121 zpf121 marked this pull request as ready for review March 9, 2026 08:52
@zpf121 zpf121 changed the title Add restart test for multi-index types with import [Draft] Add restart test for multi-index types with import Mar 11, 2026
@zpf121 zpf121 removed the slow-test To trigger slow test label Mar 11, 2026
@zpf121 zpf121 marked this pull request as draft March 11, 2026 11:20
zpf121 added 10 commits March 13, 2026 16:26
# Conflicts:
#	python/restart_test/restart_util.py
#	python/restart_test/test_multiple_index_types_import.py
#	tools/generate_wiki_embedding_plus.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant